import { buildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
    // 获取车次列表
    getCarList: {
        url: '/api/v1/work/car_number_list',
        method: 'get'
    },
    // 获取定位地图数据
    getMapLocationData: {
        url: '/api/v1/work/gps_recode_list',
        method: 'get',
        type:'restful'
    },
     // 获取定位地图数据
     getLocationData: {
        url: '/api/v1/work/gps_recode',
        method: 'get',
        type:'restful'
    },
      // 运输构件
      getTransportData: {
        url: '/api/v1/work/trans_det',
        method: 'get',
        type:'restful'
    },
}

export default buildService(settings)
